<?php
namespace app\model;

use core\lib\model;

class adminModel extends model
{
    public $table = 'admin';

    public function login($user)
    {
        $data = $this->select($this->table, '*', ['AND' => $user]);
        if ($data) {
            return true;
        } else {
            return false;
        }
    }
}